package org.feng.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.v3.oas.annotations.media.Schema;
import org.feng.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * 资源表
 *
 * @author : FengShuai
 * @since : 2024/6/27 9:24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("pub_resource")
@Schema(name = "资源表")
public class PubResource extends BaseEntity<PubResource> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 资源名称
     */
    @Schema(title = "资源名称")
    private String name;
    /**
     * appkey
     */
    @Schema(title = "appkey")
    @TableField(value = "`key`")
    private String key;
    /**
     * 密钥
     */
    @Schema(title = "密钥")
    @TableField(value = "`secret`")
    private String secret;
    /**
     * 区域
     */
    @Schema(title = "区域")
    private String endpoint;
    /**
     * 存储空间
     */
    @Schema(title = "存储空间")
    private String bucket;
    /**
     * 是否开启
     */
    @Schema(title = "是否开启")
    private Boolean status;
}
